# encoding: utf-8
from django.conf.urls import patterns, url


urlpatterns = patterns(
    '',
    # Examples:
    # url(r'^$', 'pyweb.views.home', name='home'),
    # url(r'^blog/', include('blog.urls')),
    url(r'^$', 'lunch.views.index'),
    url(r'^login/$', 'lunch.views.login'),
    url(r'^order/$', 'lunch.views.order'),
    url(r'^logout/$', 'lunch.views.logout'),
    url(r'^abort_today/$', 'lunch.views.abort_today'),
    url(r'^instead/(\w+)/$', 'lunch.views.instead'),
    url(r'^tongji/$', 'lunch.views.tongji'),
    url(r'^tongji/(\d+)/$', 'lunch.views.tongji_day'),
    url(r'^abort/(\d+)/$', 'lunch.views.abort_item'),
    url(r'^menu/$', 'lunch.views.menu_manage'),
    url(r'^menu/cfg/(\d+)/$', 'lunch.views.config_menu_item'),
    url(r'^admin_login/$', 'lunch.views.admin_login'),
    url(r'^admin_login/hrefs/$', 'lunch.views.admin_hrefs'),
    url(r'^admin_logout/$', 'lunch.views.admin_logout'),
    url(r'^admin_login/hrefs/charge/(\w+)/$', 'lunch.views.charge'),
    url(r'^menu/add/$', 'lunch.views.food_add'),
)
